home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
emac16ds.zip
/
MINTLAST.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-01-28
|
3KB
|
113 lines
;History:62,1
include memory.def
code segment public
public lastcode
lastcode label byte
code ends
_DATA segment public
_DATA ends
data segment public
db -1 ;any non-zero value will do here.
public OUTPATSIZE, outpat
OUTPATSIZE equ 200
outpat db OUTPATSIZE dup(?)
even ;we want our stack word-aligned.
public stackp
db 256 dup(055h,0aah)
stackp label byte
public lomem, lomem_end
lomem label byte
db '#(rd)#(ow,(',CR,LF
db 'Freemacs, a programmable editor - Version )##(lv,vn)(',CR,LF
db 'Copyright (C) Russell Nelson 1986-1991',CR,LF
db '))'
db '#(ds,Farglist,(SELF,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9))'
db '#(ds,Fsearch-path,(#(SELF-do,##(fm,env.PATH,;,(##(gn,env.PATH,1000))))'
db '#(rs,env.PATH)))'
db '#(mp,Fsearch-path,#(Farglist))'
db '#(ds,Fsearch-path-do,(#(==,arg1,,,('
db ' #(==,#(ff,arg1\emacs.ed,;),,('
db ' #(SELF,##(fm,env.PATH,;,(##(gn,env.PATH,1000))))'
db ' ),(#(ds,env.EMACS,arg1\)))'
db '))))'
db '#(mp,Fsearch-path-do,#(Farglist))'
db '#(ev)'
; Did they tell us where to look? If so, make sure it's got backslashes and a
; trailing slash.
db '#(n?,env.EMACS,('
db ' #(mp,env.EMACS,,/)'
db ' #(ds,env.EMACS,##(env.EMACS,\))'
db ' #(gn,env.EMACS,#(--,#(nc,##(env.EMACS)),1))'
db ' #(==,##(go,env.EMACS)#(rs,env.EMACS),\,,('
db ' #(ds,env.EMACS,##(env.EMACS)\)'
db ' ))'
db '))'
; Did they tell us where to look? If not, look where we came from for emacs.ed.
db '#(n?,env.EMACS,,('
db '#(ds,temp,##(env.FULLPATH))'
db '#(mp,temp,,EMACS.EXE)'
db '#(==,#(ff,##(temp,EMACS.ED),;),,,('
db '#(ds,env.EMACS,##(temp))'
db '))'
db '))'
; Did we find emacs.ed in the directory we came from? If not, search the
; path for emacs.ed.
db '#(n?,env.EMACS,,(#(Fsearch-path)))'
; Did we find it on the path? If not, look in \emacs on the current drive.
; db '#(n?,env.EMACS,,(#(==,#(ff,\emacs\emacs.ed,;),,,(#(ds,env.EMACS,\emacs\)))))'
db '#(an,Loading #(env.EMACS)emacs.ed...)'
db '#(==,#(ll,#(env.EMACS)emacs.ed),,('
db ' #(an,Starting editor...)'
db ' #(##(lib-name)&setup)'
db '),('
db ' #(an)'
db ' #(ow,(',CR,LF
db 'Cannot find the Freemacs .ED files))'
db ' #(==,#(rf,#(env.EMACS)boot.min),,('
db ' #(ow,(, but we did find the boot files.',CR,LF
db 'Compiling the .ED files from the .MIN sources...',CR,LF
db '))'
if 1
db ' #(sp,[)#(rm,])#(dm,])'
else
db ' #(rm,[)#(dm,[)'
endif
db ' ),('
db ' #(ow,('
db '. - Set the environment string EMACS to the subdirectory',CR,LF
db 'containing the Freemacs .ed files. For example, EMACS=c:\freemacs\',CR,LF
db 'Press any key to return to DOS...))'
db ' #(it,10000)#(hl,1)'
db ' ))'
db '))'
db ')' ;this is the sentinel that marks the end of the active string.
lomem_end label byte
data ends
bufseg segment public
public bufseg_size
bufseg_size equ $
bufseg ends
end